package com.ts.api.module.match.plan.internal.qualification.context;

import com.ts.api.module.match.core.MatchRegisterContext;
import com.ts.api.module.match.plan.internal.core.PlanMatchChannelType;
import com.ts.api.module.match.plan.internal.qualification.strategy.ApiChannelQualification;
import com.ts.api.module.match.plan.internal.qualification.strategy.ChannelQualification;
import com.ts.api.module.match.plan.internal.qualification.strategy.PlanQualificationStrategy;
import com.ts.api.module.match.plan.internal.qualification.strategy.WakeChannelQualification;
import org.springframework.stereotype.Component;

/**
 *  计划资质过滤上下文
 *
 *  @author Pan
 */
@Component
public class QualificationContext extends MatchRegisterContext<PlanMatchChannelType, PlanQualificationStrategy> {

    public QualificationContext() {
        super(PlanMatchChannelType.class);
        register(PlanMatchChannelType.API, ApiChannelQualification.class);
        register(PlanMatchChannelType.CHANNEL, ChannelQualification.class);
        register(PlanMatchChannelType.API_WAKE, WakeChannelQualification.class);
    }

}
